home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / VD08BIN.ZIP / usr / include / util / string.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-13  |  1.2 KB  |  51 lines

  1. /* -------------------------------------------------------------------
  2.  
  3.     Project: Utility class library
  4.  
  5.     Objective-C interface file for the class string
  6.  
  7.     COPYRIGHT (C), 1995, Thomas Baier
  8.     ALL RIGHTS RESERVED.
  9.  
  10.     Date:                Rev: 0.2
  11.     1995-Jul-21            ___
  12.  
  13.  */
  14.  
  15. #ifndef _STRING_H_
  16. #define _STRING_H_
  17.  
  18. /*====================================================================
  19.                       Interface of class string                       
  20. ====================================================================*/
  21. #include <objc/Object.h>
  22.  
  23. @interface String : Object
  24. {
  25.   char *stringValue;
  26. }
  27.  
  28. /* -------------------------- Initialize -------------------------- */
  29. -init;
  30.  
  31. /* ----------------------------- Free ----------------------------- */
  32. -free;
  33.  
  34. /* ----------- Methods for access to Instance Variables ----------- */
  35. -(char *) stringValue;
  36. -setStringValue: (char *) aValue;
  37.  
  38. /* ------------------------ Public methods ------------------------ */
  39. -(BOOL) isEqual: anObject;
  40. -(int) compare: anotherObject;
  41.  
  42. /* ----------------------- Private methods ------------------------ */
  43.  
  44. /* ---------------------- Archiving methods ----------------------- */
  45. -read: (TypedStream *) aStream;
  46. -write: (TypedStream *) aStream;
  47.  
  48. @end
  49.  
  50. #endif
  51.